package com.cmwa.solution.business.product.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.cmwa.solution.business.product.dao.TreFeeRateChangeDao;
import com.cmwa.solution.business.product.service.TreFeeRateChangeService;
import com.cmwa.solution.utils.SessionUtils;
import com.cmwa.solution.business.product.entity.TreFeeRateChangeVo;

import java.util.List;
import com.cmwa.solution.base.entity.Page;
import com.cmwa.solution.base.entity.SearchParam;

/**
 * 招商财富产品线费率变动表业务实现层
 * 
 * @author ex-chenxh
 * @date 2019-02-27 10:33:48
 */
@Service
public class TreFeeRateChangeServiceImpl implements TreFeeRateChangeService {
	@Resource
	private TreFeeRateChangeDao treFeeRateChangeDao;
	
		
	@Override
	public void insertTreFeeRateChange(TreFeeRateChangeVo treFeeRateChange) {
		String createId = SessionUtils.getEmployee().getID();
		treFeeRateChange.setCreateId(createId);
		treFeeRateChangeDao.insertTreFeeRateChange(treFeeRateChange);
	}
	
		
		
	@Override
	public void physicDeleteTreFeeRateChangeById(String id) {
		treFeeRateChangeDao.physicDeleteTreFeeRateChangeById(id);
	}
	
		
		
	@Override
	public void logicDeleteTreFeeRateChangeById(String id) {
		treFeeRateChangeDao.logicDeleteTreFeeRateChangeById(id);
	}
	
		
		
	@Override
	public void updateTreFeeRateChangeById(TreFeeRateChangeVo treFeeRateChange) {
		treFeeRateChangeDao.updateTreFeeRateChangeById(treFeeRateChange);
	}
	
		
		
	@Override
	public Page<TreFeeRateChangeVo> treFeeRateChangeListPage(SearchParam sp) {
		List<TreFeeRateChangeVo> items = treFeeRateChangeDao.treFeeRateChangeListPage(sp);
		return Page.create(items, sp.getStart(), sp.getLimit(), sp.getTotal());
	}
	
		
		
	@Override
	public TreFeeRateChangeVo getTreFeeRateChangeById(String id) {
		return treFeeRateChangeDao.getTreFeeRateChangeById(id);
	}
	
		
	
}
